$(function() {
	$("#lr").click(lr());
	$("#lc").click(lc());
	// 路径配置
	alert(server_context+"/js/echarts/build/dist");
	require.config({
		paths: {
			echarts: server_context+"/js/echarts/build/dist"
		}
	});
	//drawCharts([]);
});



function lr(){
				
	 var d=[
             	[{name:'合肥市'},{name:'芜湖市'}],
            	[{name:'阜阳市'},{name:'芜湖市'}],
                [{name:'淮南市'},{name:'芜湖市'}],
                [{name:'宿州市'},{name:'芜湖市'}],
                [{name:'亳州市'},{name:'芜湖市'}],
                [{name:'淮北市'},{name:'芜湖市'}],
                [{name:'蚌埠市'},{name:'芜湖市'}]
        	]

 	option.series[0].markLine.data.length=0;
    option.series[0].markLine.data=d;
    myChart.setOption(option);
}

function lc(){
	var d=[
       	[{name:'芜湖市'},{name:'铜陵市'}],
        [{name:'芜湖市'},{name:'宣城市'}],
        [{name:'芜湖市'},{name:'安庆市'}],
        [{name:'芜湖市'},{name:'池州市'}],
        [{name:'芜湖市'},{name:'黄山市'}],
        [{name:'芜湖市'},{name:'六安市'}]
    ]
   drawCharts(d);
}
